#include "global.h"

int	hashf (register U_CHAR *name, register int len, int hashsize)
{
	register int r = 0;

	while (len--)
		r = HASHSTEP(r, *name++);

	return MAKE_POS (r) % hashsize;
}

